package com.neuedu.ChinaCityDataApi.controller;

import com.neuedu.ChinaCityDataApi.pojo.City_Bdinvestment_Rank;
import com.neuedu.ChinaCityDataApi.service.City_Bdinvestment_RankService;
import com.neuedu.ChinaCityDataApi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class City_Bdinvestment_RankController {
    @Autowired
    private City_Bdinvestment_RankService city_bdinvestment_rankService;
    @GetMapping("/queryAllcity_Bdinvestment_Rank")
    public ResponseResult<List<City_Bdinvestment_Rank>> queryAllcity_Bdinvestment_Rank(){
        List<City_Bdinvestment_Rank> city_bdinvestment_ranks = city_bdinvestment_rankService.queryAllcity_Bdinvestment_Rank();
        return new ResponseResult<>("200","查询成功",city_bdinvestment_ranks);
    }
}
